using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DamageNumberController : MonoBehaviour
{
    public static  DamageNumberController instance;
    private void Awake() {
        instance = this;
    }
    public DamageNumber damageNumber;
    public Transform numberCanvas;

    private void Update() {
    }
    
    public void SpawnDamageText(int damageAmount , Vector3 position){
        DamageNumber newDamage = Instantiate(damageNumber , position , Quaternion.identity , numberCanvas);
        newDamage.SetUpDamageNumber(damageAmount);
        newDamage.gameObject.SetActive(true);
    }
}
